package com.woniu.carrent.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.carrent.pojo.TCarbrand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TCarbindMapper extends BaseMapper<TCarbrand> {
    //根据车辆品牌返回id
    @Select("select brandId from t_carbrand where brandName=#{name}")
    Integer getIdBybind(String name);
}
